package java67_adv10.inner;

public class RunTest {

	public static void main(String[] args) {
		// 匿名内部类
		// ()->{
		// }
		Thread t = new Thread("子线程") {
			@Override
			public void run() {
				for (int i = 1; i <= 20; i++)
					System.out.println(super.getName() + " print :" + i);
			}
		};

		t.start();
	}

}
